const Home = () => import(/* webpackChunkName: "Home" */ 'views/home/Home.vue')
const Panel = () => import(/* webpackChunkName: "Panel" */ 'views/panel/Panel.vue')
const PanelStuDetail = () => import(/* webpackChunkName: "Panel_Detail" */ 'views/panel/PanelStuDetail.vue')
const PanelScreen = () => import(/* webpackChunkName: "Panel_Detail" */ 'views/panel/PanelScreen.vue')
const Leave = () => import(/* webpackChunkName: "Leave" */ 'views/leave/Leave.vue')
const Record = () => import(/* webpackChunkName: "Record" */ 'views/record/Record.vue')
const RecordScreen = () => import(/* webpackChunkName: "Recoed_Screen" */ 'views/record/RecordScreen.vue')
const PanelSearchForm =() => import(/* webpackChunkName: "Screen_page" */ 'views/panel/PanelSearchForm.vue')
const RecordSearchForm =() => import(/* webpackChunkName: "Screen_page" */ 'views/record/RecordSearchForm.vue')

export default [
  {
    path: '/',
    redirect: '/panel',
  },
  /* 首页 */
  {
    path: '/home',
    redirect: '/panel',
    component: Home,
    children: [
      {
        path: '/panel',
        component: Panel,
      },
      {
        path: '/leave',
        component: Leave,
      },
      {
        path: '/record',
        name: 'record',
        component: Record,
      },
    ],
  },
  /* 看板 查看详情*/
  {
    path: '/panelStuDetail',
    name: 'panelStuDetail',
    component: PanelStuDetail,
  },
  /* 看板 查看全部*/
  {
    path: '/panelScreen',
    name: 'panelScreen',
    component: PanelScreen,
  },
  /* 记录 筛选记录*/
  {
    path: '/recordScreen',
    name: 'recordScreen',
    component: RecordScreen,
  },
  /* 看板 筛选页面*/
  {
    path: '/panelSearchForm',
    component: PanelSearchForm,
  },
  /* 记录 筛选页面*/
  {
    path: '/recordSearchForm',
    component: RecordSearchForm,
  },
]